package com.yuexi.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author jie
 * @date 2022/10/25 -18:13
 */
@RestController
public class TestController {

    @GetMapping("test")
    public String test() {
        return "hello";
    }

    @GetMapping("test2")
    public Object test2() {
        return new Date();
    }

    @GetMapping("test3")
    public Object test3() {
        return LocalDateTime.now();
    }
}
